package com.xyebank.ledger.service.sjsh.dataProvider.sche;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xyebank.ledger.anon.MigTaskComponent;
import com.xyebank.ledger.enums.LedgerJobType;
import com.xyebank.ledger.service.common.MigServiceAdapter;
import com.xyebank.ledger.service.sjsh.adaper.SJSHServiceAdapter;
import com.xyebank.ledger.vo.deal.SJSHCashApplyVo;

@Component
@SuppressWarnings("rawtypes") 
@MigTaskComponent(type = "sjsh_apply_")
public class SJSHApplyMigService extends MigServiceAdapter<SJSHCashApplyVo> {
	@Autowired
	private SJSHServiceAdapter sjshServiceAdapter;

	@SuppressWarnings("unchecked")
	@Override
	public Integer deal(Integer fromIdx, List list, LedgerJobType jobType) {
		return sjshServiceAdapter.dealApplication(fromIdx, list, LedgerJobType.MIGRATE);
	}

}
